home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Skunkware 5
/
Skunkware 5.iso
/
src
/
X11
/
wais
/
ir
/
Makefile.00
< prev
next >
Wrap
Makefile
|
1995-05-09
|
12KB
|
428 lines
#
# This is a sample server, Z39.50 library, and a user interface stub
# The Z39.50 library was primariy written by Harry Morris and the search
# engine was primarily written by Brewster Kahle.
# -brewster 4/90
# $Log: Makefile,v $
# Revision 1.8.1.1 1992/07/11 00:41:46 curtisg
# Added dependencies, moved things around
# (notably, use ../lib instead of ../bin for libraries.)
#
# Revision 1.8 92/05/10 14:42:26 jonathan
# Changed CLIENT_LOCAL_SRC ot ui-local.c. Added link to ui.c
#
# Revision 1.7 92/04/30 12:30:22 jonathan
# Changed CC = to use cc instead. It's the right thing to do...
#
# Revision 1.6 92/04/28 17:09:05 jonathan
# Added lock.[co] to lists.
#
# Revision 1.5 92/02/27 09:15:28 jonathan
# fixed compile line for ui-local.o
#
# Revision 1.4 92/02/24 10:06:59 jonathan
# Removed -DBOOL from CFLAGS
#
# Revision 1.3 92/02/13 13:02:44 jonathan
# Added CLIENT_LIB to default, and fixed rule.
#
# Revision 1.2 92/02/13 12:28:26 jonathan
# Removed object and boolean sources from definitions.
#
# Revision 1.1 92/02/13 11:55:08 jonathan
# Initial revision
#
#
# If a namespace resolver is not used (gethostbyname),
# set RESOLVER to nothing, otherwise -lresolv
# gcc vs cc: This library was written on a bunch of ANSI routines.
# the ones that did not exist in gcc or for non-ANSI cc are in ustubs.c
# for old BSD cc or System V, see cflags below
LIBDIR = ../lib
BINDIR = ../bin
SERVER_CMD = waisserver # wais server
SERVER1_CMD = waisserver1 # single task wais server
INDEX_CMD = waisindex # file indexer
PROTOCOL_LIB = $(LIBDIR)/libwais.a # protocol library
CLIENT_LIB = $(LIBDIR)/libclient.a # client library
INV_LIB = $(LIBDIR)/libinv.a # inverted file library
SIG_LIB = $(LIBDIR)/libsig.a # signature file library
LIBFTW = $(LIBDIR)/libftw.a # support library
SHELL_UI_SRC = ../ui/shell-ui.c
#
# Configure these for your system.
#
RM = /bin/rm -f
AR = ar
ARFLAGS = r
INSTALL = cp
# on SGIs, set this to true
RANLIB = true
# C Compiler. Use either cc or gcc. Comment this out in release to
# inherit from top level.
CC = cc
# Compiler & linker flags.
# Compiler debug flag. Use -g for debugging, -O for optimization.
# for antique bsd add -DBSD
# for System V add -DSYSV
# for XENIX add -M3e -Zi
# -DSECURE_SERVER for waisserver to setuid to uucp after startup.
CFLAGS = -g -DSECURE_SERVER -DRELEVANCE_FEEDBACK
# dealing with taking an intenet name and resolving it.
# set to -lresolv or nothing
#RESOLVER= #-lresolv
RESOLVER= -lsocket
#
# Files.
#
# List of source files for saber.
PROTOCOL_SRC = \
cutil.c \
futil.c \
ircfiles.c \
irfileio.c \
irfiles.c \
irtfiles.c \
panic.c \
sockets.c \
transprt.c \
ustubs.c \
wmessage.c \
wprot.c \
wutil.c \
zprot.c \
zutil.c \
ztype1.c \
docid.c \
list.c \
lock.c
IR_SRC = \
ir.c \
irretrvl.c \
stoplist.c \
irsearch.c \
trie.c
CLIENT_SRC = \
ui.c
CLIENT_LOCAL_SRC = \
ui-local.c
INV_SRC = $(SOURCES) \
sersrch.c \
irhash.c \
hash.c \
irinv.c
SIG_SRC = $(SOURCES) \
sigsrch.c \
sighash.c \
hash.c
INDEX_SRC= irbuild.c
SERVER_SRC= $(INV_SRC) \
server.c
# List of object files for saber and regular compilation.
# Should correspond to source files.
PROTOCOL_OBJ = \
cutil.o \
futil.o \
ircfiles.o \
irfileio.o \
irfiles.o \
panic.o \
sockets.o \
transprt.o \
ustubs.o \
wmessage.o \
wprot.o \
wutil.o \
zprot.o \
zutil.o \
ztype1.o \
docid.o \
list.o \
lock.o
IR_OBJS = \
ir.o \
irretrvl.o \
irsearch.o \
irtfiles.o \
stoplist.o \
trie.o
CLIENT_OBJS = \
ui.o
CLIENT_LOCAL_OBJS = \
ui-local.o
INV_OBJ = $(IR_OBJS) \
$(CLIENT_LOCAL_OBJS) \
sersrch.o \
irhash.o \
hash.o \
irinv.o
SIG_OBJ = $(IR_OBJS) \
$(CLIENT_LOCAL_OBJS) \
sigsrch.o \
sighash.o \
hash.o
INDEX_OBJ = irbuild.o
SERVER_OBJ = server.o
SERVER1_OBJ = server-single.o
#
# Compilation.
#
default: $(PROTOCOL_LIB) \
$(INV_LIB) \
$(SIG_LIB) \
$(CLIENT_LIB) \
$(INDEX_CMD) \
$(SERVER_CMD)
install: $(INDEX_CMD) $(SERVER_CMD)
-rm -f $(BINDIR)/$(INDEX_CMD)
$(INSTALL) $(INDEX_CMD) $(BINDIR)/$(INDEX_CMD)
-rm -f $(BINDIR)/$(SERVER_CMD)
$(INSTALL) $(SERVER_CMD) $(BINDIR)/$(SERVER_CMD)
$(CLIENT_LOCAL_OBJS): $(CLIENT_LOCAL_SRC)
$(CC) $(CFLAGS) -DLOCAL_SEARCH -c $(CLIENT_LOCAL_SRC)
$(PROTOCOL_LIB): $(PROTOCOL_OBJ)
$(AR) $(ARFLAGS) $@ $(PROTOCOL_OBJ)
$(RANLIB) $@
$(CLIENT_LIB): $(CLIENT_OBJS)
$(AR) $(ARFLAGS) $@ $(CLIENT_OBJS)
$(RANLIB) $@
$(INV_LIB): $(INV_OBJ)
$(AR) $(ARFLAGS) $@ $(INV_OBJ)
$(RANLIB) $@
$(SIG_LIB): $(SIG_OBJ)
$(AR) $(ARFLAGS) $@ $(SIG_OBJ)
$(RANLIB) $@
$(INDEX_CMD): $(INDEX_OBJ) $(PROTOCOL_LIB) $(INV_LIB) $(LIBFTW)
$(RM) $@
$(CC) $(CFLAGS) -o $@ $(INDEX_OBJ) \
$(INV_LIB) $(PROTOCOL_LIB) $(LIBFTW) -lm $(RESOLVER);
$(SERVER_CMD): $(SERVER_OBJ) $(PROTOCOL_LIB) $(INV_LIB) $(LIBFTW)
$(RM) $@
$(CC) $(CFLAGS) -o $@ $(SERVER_OBJ) \
$(INV_LIB) $(PROTOCOL_LIB) $(LIBFTW) -lm $(RESOLVER);
$(SERVER1_CMD): $(SERVER1_OBJ) $(PROTOCOL_LIB) $(INV_LIB) $(LIBFTW)
$(RM) $@
$(CC) $(CFLAGS) -o $@ $(SERVER1_OBJ) \
$(INV_LIB) $(PROTOCOL_LIB) $(LIBFTW) -lm $(RESOLVER);
ui-local.c : ui.c
ln ui.c ui-local.c
# DO NOT DELETE THIS LINE -- make depend depends on it.
byte_order.o: ../config.h
cdialect.o: ustubs.h
cutil.o: cutil.h cdialect.h ustubs.h
cutil.o: panic.h
cutil.o: cdialect.h ustubs.h
docid.o: docid.h cdialect.h ustubs.h
docid.o: zprot.h zutil.h cutil.h
docid.o: irfileio.h futil.h
docid.o: cdialect.h ustubs.h zprot.h zutil.h cutil.h
futil.o: futil.h
futil.o: cdialect.h ustubs.h cutil.h
futil.o: panic.h
futil.o: cdialect.h ustubs.h cutil.h
hash.o: cdialect.h ustubs.h cutil.h
hash.o: hash.h
hash.o: panic.h
ir.o: server.h ir.h cdialect.h ustubs.h wprot.h
ir.o: zprot.h zutil.h cutil.h
ir.o: ztype1.h irsearch.h irfiles.h hash.h futil.h irhash.h irlex.h docid.h
ir.o: irretrvl.h version.h sockets.h
ir.o: panic.h
ir.o: irdirent.h
ir.o: wmessage.h
ir.o: cdialect.h ustubs.h
irbuild.o: irdirent.h cdialect.h ustubs.h
irbuild.o: cutil.h
irbuild.o: futil.h irfiles.h
irbuild.o: hash.h irtfiles.h panic.h ircfiles.h version.h irext.h
ircfiles.o: cutil.h cdialect.h ustubs.h
ircfiles.o: ircfiles.h
ircfiles.o: cdialect.h ustubs.h
irdirent.o: cdialect.h ustubs.h
irext.o: cdialect.h ustubs.h irfiles.h cutil.h
irext.o: hash.h
irfileio.o: irfileio.h cdialect.h ustubs.h futil.h
irfileio.o: cutil.h
irfileio.o: zprot.h zutil.h
irfileio.o: cdialect.h ustubs.h futil.h cutil.h
irfileio.o: zprot.h zutil.h
irfiles.o: cutil.h cdialect.h
irfiles.o: ustubs.h
irfiles.o: irfiles.h hash.h panic.h futil.h
irfiles.o: sockets.h
irfiles.o: version.h irext.h irlex.h lock.h
irfiles.o: cdialect.h ustubs.h cutil.h
irfiles.o: hash.h
irhash.o: panic.h cdialect.h ustubs.h cutil.h
irhash.o: irfiles.h hash.h
irhash.o: irhash.h irlex.h stoplist.h irinv.h
irhash.o: cdialect.h ustubs.h cutil.h
irhash.o: irlex.h hash.h
irinv.o: cutil.h cdialect.h
irinv.o: ustubs.h
irinv.o: futil.h irhash.h irlex.h hash.h panic.h
irinv.o: irfiles.h irext.h
irinv.o: irfiles.h cdialect.h ustubs.h cutil.h
irinv.o: hash.h
irretrvl.o: irretrvl.h cdialect.h ustubs.h docid.h
irretrvl.o: zprot.h zutil.h cutil.h
irretrvl.o: wprot.h ztype1.h version.h irfiles.h
irretrvl.o: hash.h futil.h
irretrvl.o: irext.h irdirent.h
irretrvl.o: cdialect.h ustubs.h docid.h zprot.h
irretrvl.o: zutil.h cutil.h
irretrvl.o: wprot.h ztype1.h version.h
irsearch.o: cutil.h cdialect.h ustubs.h
irsearch.o: irfiles.h hash.h
irsearch.o: irtfiles.h irlex.h irext.h irsearch.h futil.h irhash.h zprot.h
irsearch.o: zutil.h wprot.h ztype1.h docid.h irretrvl.h
irsearch.o: version.h trie.h
irsearch.o: cdialect.h ustubs.h irfiles.h cutil.h
irsearch.o: hash.h futil.h
irsearch.o: irhash.h irlex.h zprot.h zutil.h wprot.h ztype1.h
irtfiles.o: panic.h cdialect.h ustubs.h irdirent.h
irtfiles.o: irhash.h
irtfiles.o: cutil.h
irtfiles.o: irlex.h hash.h futil.h irfiles.h
irtfiles.o: irtfiles.h
irtfiles.o: cdialect.h ustubs.h irfiles.h cutil.h
irtfiles.o: hash.h
irverify.o: irverify.h irfiles.h cdialect.h ustubs.h
irverify.o: cutil.h
irverify.o: hash.h irlex.h panic.h futil.h
irverify.o: irfiles.h cdialect.h ustubs.h cutil.h
irverify.o: hash.h irlex.h
list.o: list.h cutil.h cdialect.h ustubs.h
list.o: cutil.h cdialect.h ustubs.h
lock.o: lock.h
lock.o: cdialect.h ustubs.h futil.h cutil.h
lock.o: cdialect.h ustubs.h
macbuild.o: irfiles.h cdialect.h ustubs.h cutil.h
macbuild.o: hash.h irhash.h
macbuild.o: irlex.h irtfiles.h panic.h irext.h profile.h EventMgr.h FileMgr.h
macbuild.o: CApplication.h CFile.h CView.h CWindow.h CDesktop.h CDirector.h
macbuild.o: CDynamicError.h HFS.H
macver.o: irverify.h irfiles.h cdialect.h ustubs.h
macver.o: cutil.h
macver.o: hash.h irlex.h panic.h CApplication.h CFile.h CView.h CWindow.h
macver.o: CDesktop.h CDirector.h CDynamicError.h HFS.H
macver.o: FileMgr.h
panic.o: panic.h cdialect.h ustubs.h futil.h cutil.h
panic.o: cdialect.h ustubs.h
sersrch.o: cdialect.h ustubs.h irfiles.h cutil.h
sersrch.o: hash.h irsearch.h
sersrch.o: futil.h irhash.h irlex.h zprot.h zutil.h wprot.h ztype1.h irext.h
sersrch.o: byte_order.h ../config.h
server-single.o: server.h sockets.h cdialect.h ustubs.h
server-single.o: cutil.h
server-single.o: irdirent.h
server-single.o: panic.h transprt.h wmessage.h
server-single.o: ir.h wprot.h zprot.h zutil.h ztype1.h futil.h irext.h
server-single.o: irfiles.h hash.h irtfiles.h irhash.h irlex.h version.h
server.o: server.h sockets.h cdialect.h ustubs.h
server.o: cutil.h
server.o: irdirent.h
server.o: panic.h transprt.h wmessage.h ir.h
server.o: wprot.h zprot.h zutil.h ztype1.h futil.h irext.h irfiles.h hash.h
server.o: irsearch.h irhash.h irlex.h irtfiles.h version.h
sighash.o: panic.h cdialect.h ustubs.h cutil.h
sighash.o: futil.h irfiles.h
sighash.o: hash.h irhash.h irlex.h stoplist.h irinv.h sigindex.h
sighash.o: cdialect.h ustubs.h cutil.h
sighash.o: irlex.h
sigindex.o: cdialect.h ustubs.h
sigsrch.o: cdialect.h ustubs.h irfiles.h cutil.h
sigsrch.o: hash.h irsearch.h
sigsrch.o: futil.h irhash.h irlex.h zprot.h zutil.h wprot.h ztype1.h irext.h
sigsrch.o: sigsrch.h
sockets.o: sockets.h cdialect.h ustubs.h cutil.h
sockets.o: panic.h
sockets.o: cdialect.h ustubs.h cutil.h
stoplist.o: stoplist.h cdialect.h ustubs.h cutil.h
stoplist.o: cdialect.h ustubs.h
transprt.o: transprt.h cdialect.h ustubs.h cutil.h
transprt.o: wmessage.h
transprt.o: cdialect.h ustubs.h cutil.h
trie.o: cutil.h cdialect.h ustubs.h
trie.o: trie.h
trie.o: cdialect.h ustubs.h
ui-local.o: ui.h cdialect.h ustubs.h zprot.h zutil.h
ui-local.o: cutil.h
ui-local.o: wprot.h ztype1.h transprt.h wmessage.h
ui-local.o: panic.h version.h server.h wutil.h futil.h
ui.o: ui.h cdialect.h ustubs.h zprot.h zutil.h
ui.o: cutil.h
ui.o: wprot.h ztype1.h transprt.h wmessage.h panic.h version.h server.h
ui.o: wutil.h futil.h
ui.o: cdialect.h ustubs.h zprot.h zutil.h cutil.h
ui.o: wprot.h ztype1.h
ui.o: transprt.h wmessage.h panic.h version.h server.h
ustubs.o: ustubs.h cdialect.h cutil.h
ustubs.o: cdialect.h ustubs.h
wmessage.o: wmessage.h cdialect.h
wmessage.o: ustubs.h cutil.h
wmessage.o: cdialect.h ustubs.h
wprot.o: wprot.h cdialect.h ustubs.h zprot.h zutil.h
wprot.o: cutil.h
wprot.o: ztype1.h panic.h
wprot.o: cdialect.h ustubs.h zprot.h zutil.h cutil.h
wprot.o: ztype1.h
wutil.o: futil.h cdialect.h ustubs.h cutil.h
wutil.o: zprot.h zutil.h wprot.h ztype1.h
wutil.o: wutil.h
wutil.o: cdialect.h ustubs.h cutil.h
zprot.o: zprot.h cdialect.h ustubs.h zutil.h cutil.h
zprot.o: cdialect.h ustubs.h zutil.h cutil.h
ztype1.o: ztype1.h cdialect.h ustubs.h zutil.h
ztype1.o: cutil.h
ztype1.o: panic.h
ztype1.o: cdialect.h ustubs.h zutil.h cutil.h
zutil.o: zutil.h cdialect.h ustubs.h cutil.h
zutil.o: cdialect.h ustubs.h cutil.h